import { Layout } from '@fl/utils/routerHelper'

const strategicAgreement: AppRouteRecordRaw = {
    children: [
        {
            component: () => import('@/operations-pages/strategic-agreement/protocol-list/index.vue'),
            meta: {
                title: '协议列表',
            },
            name: 'protocol-list',
            path: 'protocol-list',
        },
        {
            component: () => import('@/supplier-pages/order-management/protocol-management/detail.vue'),
            meta: {
                activeMenu: '/operations-pages/strategic-agreement/protocol-list',
                hidden: true,
                isAdmin: true,
                noTagsView: true,
                title: '协议详情',
            },
            name: 'protocol-show',
            path: 'protocol-show/:id',
        },
        {
            component: () => import('@/operations-pages/strategic-agreement/protocol-list/review.vue'),
            meta: {
                activeMenu: '/operations-pages/strategic-agreement/protocol-list',
                hidden: true,
                noTagsView: true,
                title: '协议审核',
            },
            name: 'protocol-review',
            path: 'protocol-review',
        },
        {
            component: () => import('@/pages/product-preview/index.vue'),
            meta: {
                activeMenu: '/operations-pages/strategic-agreement/protocol-list',
                hidden: true,
                // noTagsView: true,
                title: '产品预览',
            },
            name: 'product-preview',
            path: 'product-preview',
        },
    ],
    component: Layout,
    meta: {
        alwaysShow: true,
        title: '战略协议',
    },
    name: 'strategic-agreement',
    path: 'strategic-agreement',
}

export default strategicAgreement
